package com.atguigu.structure.facade;

public class Host {
    private static Host host =new Host();

    public static Host getInstance(){
        return Host.host;
    }

    public void open(){
        System.out.println(this.getClass().getSimpleName()+" "+Thread.currentThread().getStackTrace()[1].getMethodName());
    }

    public void close(){
        System.out.println(this.getClass().getSimpleName()+" "+Thread.currentThread().getStackTrace()[1].getMethodName());
    }

    public void reset(){
        System.out.println(this.getClass().getSimpleName()+" "+Thread.currentThread().getStackTrace()[1].getMethodName());
    }
}
